package com.ruoyi.project.video.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.utils.text.Convert;

/**
 * videoService业务层处理
 * 
 * @author gzy
 * @date 2023-03-10
 */
@Service
public class VideoInfoServiceImpl implements IVideoInfoService 
{
    @Autowired
    private VideoInfoMapper videoInfoMapper;

    /**
     * 查询video
     * 
     * @param id video主键
     * @return video
     */
    @Override
    public VideoInfo selectVideoInfoById(String id)
    {
        return videoInfoMapper.selectVideoInfoById(id);
    }

    /**
     * 查询video列表
     * 
     * @param videoInfo video
     * @return video
     */
    @Override
    public List<VideoInfo> selectVideoInfoList(VideoInfo videoInfo)
    {
        return videoInfoMapper.selectVideoInfoList(videoInfo);
    }

    /**
     * 新增video
     * 
     * @param videoInfo video
     * @return 结果
     */
    @Override
    public int insertVideoInfo(VideoInfo videoInfo)
    {
        return videoInfoMapper.insertVideoInfo(videoInfo);
    }

    /**
     * 修改video
     * 
     * @param videoInfo video
     * @return 结果
     */
    @Override
    public int updateVideoInfo(VideoInfo videoInfo)
    {
        return videoInfoMapper.updateVideoInfo(videoInfo);
    }

    /**
     * 批量删除video
     * 
     * @param ids 需要删除的video主键
     * @return 结果
     */
    @Override
    public int deleteVideoInfoByIds(String ids)
    {
        return videoInfoMapper.deleteVideoInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除video信息
     * 
     * @param id video主键
     * @return 结果
     */
    @Override
    public int deleteVideoInfoById(String id)
    {
        return videoInfoMapper.deleteVideoInfoById(id);
    }
}
